function isStudying(bool = true) {
  console.log(bool); // true
}
isStudying();

// 有默认值的参数一定要放到形参的最后
function isWorking(name, bool = true) {
  console.log(name); // lanpang
  console.log(bool); // true
}
isWorking('lanpang');